﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BLL.BusinessRules;


namespace BLL
{
    public class BANSAOHOADON: BusinessObject
    {
        public Guid BanSaoHoaDon { get; set; }
        public Guid MaHoaDon { get; set; }
        public int? SoBanSao { get; set; }
        public DateTime? NgayIn { get; set; }
        public int? NguoiIn { get; set; }
        public int? CreateBy { get; set; }
        public int? ModifiedBy { get; set; }
        public DateTime? ModifiedOn { get; set; }


        public BANSAOHOADON()
        {
            AddRule(new ValidateRequired("BanSaoHoaDon"));
            AddRule(new ValidateRequired("MaHoaDon"));
            AddRule(new ValidateRequired("SoBanSao"));
        }

        public BANSAOHOADON(Guid banSaoHoaDon, Guid maHoaDon, int? soBanSao, DateTime? ngayIn, int? nguoiIn, int? createBy, int? modifiedBy, DateTime? modifiedOn)
            : this()
        {
            BanSaoHoaDon = banSaoHoaDon;
            MaHoaDon = maHoaDon;
            SoBanSao = soBanSao;
            NgayIn = ngayIn;
            NguoiIn = nguoiIn;
            CreateBy = createBy;
            ModifiedBy = modifiedBy;
            ModifiedOn = modifiedOn;
        }

    }
}
